]> dgit.raspbian.org Git - gnome-shell.git/commit
breakManager: Use uninhibitable idle watch
authorSebastian Keller <skeller@gnome.org>
Tue, 6 May 2025 00:40:18 +0000 (02:40 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 30 Jan 2026 14:10:51 +0000 (14:10 +0000)
commitb2e5a125ae8bf682b0d54d925ce8fdf26680b48e
tree9096cc610b8f9392bee3bb3f5e8b1d63b7223754
parenta70e0d6e540da0509da6b948699be28378e47404
breakManager: Use uninhibitable idle watch

If we use a regular idle watch, any session inhibitors can prevent the
watch from triggering, leading to the break manager to never consider
the break as having been completed until the inhibitor is gone. This
could lead to situations in which the system appears to be stuck with
a dimmed screen.

Also start the idle time when the idle watch is created, otherwise any
previous idle time would count towards it, causing the watch to trigger
early, leaving it inconsistent with the rest of the break manager state.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8378
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3709>
js/misc/breakManager.js
tests/unit/breakManager.js